# # score=92
# #
# # if 90<=score<=100:
# #     print("优秀")
# # elif 80<=score<90:
# #     print("良好")
# # elif 60 <=score<80:
# #     print("及格")
# # elif 0<=score<60:
# #     print("不及格")
# #
#
#
# if 4>3:
#     if 2>3:
#         print("XXX")
#     else:
#         print("OOOO")


#输入
hight=float(input("请输入身高(m):"))
weight=float(input("请输入体重(kg):"))
age=int(input("请输入年龄:"))
gender=int(input("请输入性别(男：1 女：0):"))

if not(0<hight<3 and 0<weight<300 and 0<age<150 and (gender==1 or gender==0)):
    print("输入错误，程序退出")
    exit()

#BMI
bmi=weight/(hight**2)
#体脂率
fat=1.2*bmi+0.23*age-5.4-10.8*gender
fat/=100
if(gender==1):
    wenhao="先生你好"
    result=0.15<fat<0.18
    minNUM=0.15
    maxNUM=0.18
    #     reasult="符合"
    # else:
    #     reasult="不符合"

elif gender==0:
    wenhao="女士你好"
    result=0.25 < fat < 0.28
    minNUM = 0.25
    maxNUM = 0.28
    #     reasult = "符合"
    # else:
    #     reasult = "不符合"

# minfat=15+10*(1-gender)
# maxfat=18+10*(1-gender)
#
# reasult=minfat<fat<maxfat

# print(f"体脂率是：{fat}")
# print(f'你的体脂率{reasult}标准')

#提示
if result:
    notice="恭喜您，身体非常健康，请继续保持"
else:
    if  fat>maxNUM:
        notice = "请注意，您的身体不正常，偏胖"
    else:
        notice="请注意，您的身体不正常,偏瘦"

print(wenhao,notice)
